package com.ruoyi.system.domain.api;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户矿机信息对象 m_user_machine
 * 
 * @author ruoyi
 * @date 2022-04-22
 */
public class MUserMachine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 矿机机器ID */
    @Excel(name = "矿机机器ID")
    private Long machineId;

    /** 矿机名称 */
    @Excel(name = "矿机名称")
    private String machineName;

    /** 矿机类型 1 免费矿机  2收益率矿机 3固定收益矿机 */
    @Excel(name = "矿机类型 1 免费矿机  2收益率矿机 3固定收益矿机")
    private Integer machineType;

    /** 购买用户ID */
    @Excel(name = "购买用户ID")
    private Long userId;

    /** 购入花费金额 */
    @Excel(name = "购入花费金额")
    private Long buyTotalAmount;

    /** 购买算力数量 */
    @Excel(name = "购买算力数量")
    private BigDecimal buyQty;

    /** 矿机总产矿天数 */
    @Excel(name = "矿机总产矿天数")
    private Long totalMineDay;

    /** 目前已挖多少天 */
    @Excel(name = "目前已挖多少天")
    private Long mineDay;

    /** 算力 fil/T */
    @Excel(name = "算力 fil/T")
    private BigDecimal power;

    /** 开始挖矿时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始挖矿时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 状态  0 未启动 1挖矿中 2已完成 */
    @Excel(name = "状态  0 未启动 1挖矿中 2已完成")
    private Integer status;

    /** 是否返佣 0否 1是 */
    @Excel(name = "是否返佣 0否 1是")
    private Long isReferee;

    private Date createTime;

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMachineId(Long machineId) 
    {
        this.machineId = machineId;
    }

    public Long getMachineId() 
    {
        return machineId;
    }
    public void setMachineName(String machineName) 
    {
        this.machineName = machineName;
    }

    public String getMachineName() 
    {
        return machineName;
    }
    public void setMachineType(Integer machineType) 
    {
        this.machineType = machineType;
    }

    public Integer getMachineType() 
    {
        return machineType;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBuyTotalAmount(Long buyTotalAmount) 
    {
        this.buyTotalAmount = buyTotalAmount;
    }

    public Long getBuyTotalAmount() 
    {
        return buyTotalAmount;
    }
    public void setBuyQty(BigDecimal buyQty) 
    {
        this.buyQty = buyQty;
    }

    public BigDecimal getBuyQty() 
    {
        return buyQty;
    }
    public void setTotalMineDay(Long totalMineDay) 
    {
        this.totalMineDay = totalMineDay;
    }

    public Long getTotalMineDay() 
    {
        return totalMineDay;
    }
    public void setMineDay(Long mineDay) 
    {
        this.mineDay = mineDay;
    }

    public Long getMineDay() 
    {
        return mineDay;
    }
    public void setPower(BigDecimal power) 
    {
        this.power = power;
    }

    public BigDecimal getPower() 
    {
        return power;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setIsReferee(Long isReferee) 
    {
        this.isReferee = isReferee;
    }

    public Long getIsReferee() 
    {
        return isReferee;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("machineId", getMachineId())
            .append("machineName", getMachineName())
            .append("machineType", getMachineType())
            .append("userId", getUserId())
            .append("buyTotalAmount", getBuyTotalAmount())
            .append("buyQty", getBuyQty())
            .append("totalMineDay", getTotalMineDay())
            .append("mineDay", getMineDay())
            .append("power", getPower())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("isReferee", getIsReferee())
            .toString();
    }
}
